package demo1;

public class TestStudent2 {
    public static void main(String[] args) {
        Student2 s1=new Student2("李华",25,89);
        Student2 s2=new Student2("六金",15,105);
        ScoreComparator scoreComparator=new ScoreComparator();
        System.out.println(scoreComparator.compare(s1,s2));
        AgeComparator ageComparator=new AgeComparator();
        System.out.println(ageComparator.compare(s1,s2));
        NameComparator nameComparator=new NameComparator();
        System.out.println(nameComparator.compare(s1,s2));
    }
}
